<div class="right-box">
	<div class="same-floor">
		<h3>create 创建订单API</h3>
		<p>创建订单，购物车必须有数据，如果当前用户登录则会将此订单记录为此会员的订单，如果没登录则会提示登录</p>
	</div>
	<div class="same-floor">
		<h3>API地址：</h3>
		<p>/api/shop/order/create.do</p>
		<h3>输入参数：</h3>
		<div class="need-parameter">
			<h4><span class="w100">参数</span><span class="w100">类型</span><span class="w100">是否必须</span><span class="w100">示例值</span><span class="w100">备注</span></h4>
			<p><span class="w100 important">address_id</span><span class="w100 important">int</span><span class="w100 important">必须</span><span class="w100 important">1</span><span class="w100">收货地址ID</span></p>
			<p><span class="w100 important">payment_id</span><span class="w100 important">int</span><span class="w100 important">必须</span><span class="w100 important">1</span><span class="w100">支付方式ID</span></p>
			<p><span class="w100 important">shipping_id</span><span class="w100 important">int</span><span class="w100 important">必须</span><span class="w100 important">1</span><span class="w100">配送方式ID</span></p>
			<p><span class="w100 important">city</span><span class="w100 important">String</span><span class="w100 important">必须</span><span class="w100 important">海淀区</span><span class="w100">城市</span></p>
			<p><span class="w100 important">needPay</span><span class="w100 important">int</span><span class="w100 important">必须</span><span class="w100 important">670</span><span class="w100">需要收费</span></p>
			<p><span class="w100 important">province</span><span class="w100 important">String</span><span class="w100 important">必须</span><span class="w100 important">北京</span><span class="w100">省</span></p>
			<p><span class="w100 important">province_id</span><span class="w100 important">int</span><span class="w100 important">必须</span><span class="w100 important">1</span><span class="w100">省id</span></p>
			<p><span class="w100 important">receiptContent</span><span class="w100 important">String</span><span class="w100 important">必须</span><span class="w100 important">办公用品</span><span class="w100">收据内容</span></p>
			<p><span class="w100 important">receiptType</span><span class="w100 important">int</span><span class="w100 important">必须</span><span class="w100 important">1</span><span class="w100">收据类型</span></p>
			<p><span class="w100 important">region</span><span class="w100 important">String</span><span class="w100 important">必须</span><span class="w100 important">海淀区</span><span class="w100">地区</span></p>
			<p><span class="w100 important">region_id</span><span class="w100 important">int</span><span class="w100 important">必须</span><span class="w100 important">453</span><span class="w100">地区id</span></p>
			<p><span class="w100 important">shipAddr</span><span class="w100 important">String</span><span class="w100 important">必须</span><span class="w100 important">北京市海淀区</span><span class="w100">地址</span></p>
			<p><span class="w100 important">shipMobile</span><span class="w100 important">String</span><span class="w100 important">必须</span><span class="w100 important">13811111111</span><span class="w100">联系电话</span></p>
			<p><span class="w100 important">shipName</span><span class="w100 important">String</span><span class="w100 important">必须</span><span class="w100 important">XXX</span><span class="w100">姓名</span></p>
			<p><span class="w100 important">shipZip</span><span class="w100 important">String</span><span class="w100 important">必须</span><span class="w100 important">1000846</span><span class="w100">邮编</span></p>
			<p><span class="w100 important">typeId</span><span class="w100 important">int</span><span class="w100 important">必须</span><span class="w100 important">1</span><span class="w100">类型</span></p>
			<p><span class="w100 important">shipDay</span><span class="w100 important">String</span><span class="w100 important">可选项</span><span class="w100 important"></span><span class="w100">配送时间</span></p>
			<p><span class="w100 important">remark</span><span class="w100 important">String</span><span class="w100 important">可选项</span><span class="w100 important"></span><span class="w100">备注</span></p>
		</div>
	</div>
	<div class="same-floor">
		<h3>返回结果:</h3>
		<div class="sample-code">
			<h3><span class="w100">参数</span><span class="w100">类型</span><span class="w400">备注</span></h3>
			<p><span class="w100 r_name">result</span><span class="w100 r_type">int</span><span class="w400 r-intro">为1表示添加成功0表示失败</span></p>
			<p><span class="w100 r_name">message</span><span class="w100 r_type">String</span><span class="w400 r-intro">返回信息</span></p>
			<p><span class="w100 r_name">data</span><span class="w100 r_type">Map</span><span class="w400 r-intro">返回Map数据</span></p>
			<p><span class="w100 r_name">order</span><span class="w100 r_type">String</span><span class="w400 r-intro">订单</span></p>
			<p><span class="w100 r_name">order_id</span><span class="w100 r_type">int</span><span class="w400 r-intro">订单id</span></p>
			<p><span class="w100 r_name">member_id</span><span class="w100 r_type">int</span><span class="w400 r-intro">会员id</span></p>
			<p><span class="w100 r_name">status</span><span class="w100 r_type">int</span><span class="w400 r-intro">状态</span></p>
			<p><span class="w100 r_name">pay_status</span><span class="w100 r_type">int</span><span class="w400 r-intro">付款状态</span></p>
			<p><span class="w100 r_name">ship_status</span><span class="w100 r_type">int</span><span class="w400 r-intro">运送状态</span></p>
			<p><span class="w100 r_name">shipStatus</span><span class="w100 r_type">String</span><span class="w400 r-intro">运送状态</span></p>
			<p><span class="w100 r_name">payStatus</span><span class="w100 r_type">String</span><span class="w400 r-intro">付款状态</span></p>
			<p><span class="w100 r_name">orderStatus</span><span class="w100 r_type">String</span><span class="w400 r-intro">订单状态</span></p>
			<p><span class="w100 r_name">regionid</span><span class="w100 r_type">int</span><span class="w400 r-intro">区域id</span></p>
			<p><span class="w100 r_name">shipping_id</span><span class="w100 r_type">int</span><span class="w400 r-intro">快递id</span></p>
			<p><span class="w100 r_name">shipping_type</span><span class="w100 r_type">String</span><span class="w400 r-intro">快递类型</span></p>
			<p><span class="w100 r_name">shipping_area</span><span class="w100 r_type">String</span><span class="w400 r-intro">运输区域</span></p>
			<p><span class="w100 r_name">goods</span><span class="w100 r_type">String</span><span class="w400 r-intro">商品</span></p>
			<p><span class="w100 r_name">create_time</span><span class="w100 r_type">Long</span><span class="w400 r-intro">创建时间</span></p>
			<p><span class="w100 r_name">ship_name</span><span class="w100 r_type">String</span><span class="w400 r-intro">运送名称</span></p>
			<p><span class="w100 r_name">ship_addr</span><span class="w100 r_type">String</span><span class="w400 r-intro">运送地址</span></p>
			<p><span class="w100 r_name">ship_zip</span><span class="w100 r_type">String</span><span class="w400 r-intro">运送邮编</span></p>
			<p><span class="w100 r_name">ship_email</span><span class="w100 r_type">String</span><span class="w400 r-intro">运送邮箱</span></p>
			<p><span class="w100 r_name">ship_mobile</span><span class="w100 r_type">String</span><span class="w400 r-intro">收货联系电话</span></p>
			<p><span class="w100 r_name">ship_tel</span><span class="w100 r_type">String</span><span class="w400 r-intro">收货固定电话</span></p>
			<p><span class="w100 r_name">ship_day</span><span class="w100 r_type">String</span><span class="w400 r-intro">送货时间</span></p>
			<p><span class="w100 r_name">is_protect</span><span class="w100 r_type">String</span><span class="w400 r-intro">是否被保护</span></p>
			<p><span class="w100 r_name">protect_price</span><span class="w100 r_type">Double</span><span class="w400 r-intro">保价</span></p>
			<p><span class="w100 r_name">goods_amount</span><span class="w100 r_type">Double</span><span class="w400 r-intro">商品数量</span></p>
			<p><span class="w100 r_name">shipping_amount</span><span class="w100 r_type">Double</span><span class="w400 r-intro">运输量</span></p>
			<p><span class="w100 r_name">discount</span><span class="w100 r_type">Double</span><span class="w400 r-intro">折扣</span></p>
			<p><span class="w100 r_name">order_amount</span><span class="w100 r_type">Double</span><span class="w400 r-intro">订单金额</span></p>
			<p><span class="w100 r_name">weight</span><span class="w100 r_type">Double</span><span class="w400 r-intro">重量</span></p>
			<p><span class="w100 r_name">paymoney</span><span class="w100 r_type">Double</span><span class="w400 r-intro">付款</span></p>
			<p><span class="w100 r_name">remark</span><span class="w100 r_type">String</span><span class="w400 r-intro">备注</span></p>
			<p><span class="w100 r_name">disabled</span><span class="w100 r_type">int</span><span class="w400 r-intro">残缺</span></p>
			<p><span class="w100 r_name">payment_id</span><span class="w100 r_type">int</span><span class="w400 r-intro">付款id</span></p>
			<p><span class="w100 r_name">payment_name</span><span class="w100 r_type">String</span><span class="w400 r-intro">付款名称</span></p>
			<p><span class="w100 r_name">payment_type</span><span class="w100 r_type">String</span><span class="w400 r-intro">付款类型</span></p>
			<p><span class="w100 r_name">goods_num</span><span class="w100 r_type">String</span><span class="w400 r-intro">商品编号</span></p>
			<p><span class="w100 r_name">gainedpoint</span><span class="w100 r_type">int</span><span class="w400 r-intro">获得积分</span></p>
			<p><span class="w100 r_name">consumepoint</span><span class="w100 r_type">int</span><span class="w400 r-intro">消费积分</span></p>
			<p><span class="w100 r_name">depotid</span><span class="w100 r_type">int</span><span class="w400 r-intro">仓库id</span></p>
			<p><span class="w100 r_name">cancel_reason</span><span class="w100 r_type">String</span><span class="w400 r-intro">取消原因</span></p>
			<p><span class="w100 r_name">sale_cmpl</span><span class="w100 r_type">int</span><span class="w400 r-intro">销售</span></p>
			<p><span class="w100 r_name">sale_cmpl_time</span><span class="w100 r_type">String</span><span class="w400 r-intro">销售时间</span></p>
			<p><span class="w100 r_name">ship_provinceid</span><span class="w100 r_type">int</span><span class="w400 r-intro">运输省id</span></p>
			<p><span class="w100 r_name">ship_cityid</span><span class="w100 r_type">int</span><span class="w400 r-intro">运输城市id</span></p>
			<p><span class="w100 r_name">ship_regionid</span><span class="w100 r_type">String</span><span class="w400 r-intro">运输区域id</span></p>
			<p><span class="w100 r_name">signing_time</span><span class="w100 r_type">String</span><span class="w400 r-intro">签约时间</span></p>
			<p><span class="w100 r_name">the_sign</span><span class="w100 r_type">String</span><span class="w400 r-intro">标志</span></p>
			<p><span class="w100 r_name">allocation_time</span><span class="w100 r_type">String</span><span class="w400 r-intro">分配时间</span></p>
			<p><span class="w100 r_name">admin_remark</span><span class="w100 r_type">String</span><span class="w400 r-intro">管理员留言</span></p>
			<p><span class="w100 r_name">address_id</span><span class="w100 r_type">int</span><span class="w400 r-intro">地址id</span></p>
			<p><span class="w100 r_name">goodsPrice</span><span class="w100 r_type">Double</span><span class="w400 r-intro">商品价格</span></p>
			<p><span class="w100 r_name">orderprice</span><span class="w100 r_type">Double</span><span class="w400 r-intro">订单价格</span></p>
			<p><span class="w100 r_name">shippingPrice</span><span class="w100 r_type">Double</span><span class="w400 r-intro">运费价格</span></p>
			<p><span class="w100 r_name">needPayMoney</span><span class="w100 r_type">Double</span><span class="w400 r-intro">支付的金额</span></p>
			<p><span class="w100 r_name">discountPrice</span><span class="w100 r_type">Double</span><span class="w400 r-intro">折扣金额</span></p>
			<p><span class="w100 r_name">weight</span><span class="w100 r_type">Double</span><span class="w400 r-intro">重量</span></p>
			<p><span class="w100 r_name">point</span><span class="w100 r_type">int</span><span class="w400 r-intro">积分</span></p>
			<p><span class="w100 r_name">discountItem</span><span class="w100 r_type">String</span><span class="w400 r-intro">优惠项目</span></p>
			<p><span class="w100 r_name">actDiscount</span><span class="w100 r_type">Double</span><span class="w400 r-intro">法案折扣</span></p>
			<p><span class="w100 r_name">gift_id</span><span class="w100 r_type">int</span><span class="w400 r-intro">礼品id</span></p>
			<p><span class="w100 r_name">bonus_id</span><span class="w100 r_type">int</span><span class="w400 r-intro">奖金id</span></p>
			<p><span class="w100 r_name">memberAddress</span><span class="w100 r_type">String</span><span class="w400 r-intro">会员地址</span></p>
			<p><span class="w100 r_name">addr_id</span><span class="w100 r_type">int</span><span class="w400 r-intro">地址id</span></p>
			<p><span class="w100 r_name">member_id</span><span class="w100 r_type">int</span><span class="w400 r-intro">会员id</span></p>
			<p><span class="w100 r_name">name</span><span class="w100 r_type">String</span><span class="w400 r-intro">名称</span></p>
			<p><span class="w100 r_name">country</span><span class="w100 r_type">String</span><span class="w400 r-intro">国家</span></p>
			<p><span class="w100 r_name">province_id</span><span class="w100 r_type">String</span><span class="w400 r-intro">省</span></p>
			<p><span class="w100 r_name">city_id</span><span class="w100 r_type">int</span><span class="w400 r-intro">城市id</span></p>
			<p><span class="w100 r_name">region_id</span><span class="w100 r_type">int</span><span class="w400 r-intro">地区id</span></p>
			<p><span class="w100 r_name">province</span><span class="w100 r_type">String</span><span class="w400 r-intro">省</span></p>
			<p><span class="w100 r_name">city</span><span class="w100 r_type">String</span><span class="w400 r-intro">城市</span></p>
			<p><span class="w100 r_name">addr</span><span class="w100 r_type">String</span><span class="w400 r-intro">地址</span></p>
			<p><span class="w100 r_name">remark</span><span class="w100 r_type">String</span><span class="w400 r-intro">备注</span></p>
			<p><span class="w100 r_name">isDel</span><span class="w100 r_type">String</span><span class="w400 r-intro">isDel</span></p>
			<p><span class="w100 r_name">orderItemList</span><span class="w100 r_type">String</span><span class="w400 r-intro">订购项目列表</span></p>
			<p><span class="w100 r_name">need_pay_money</span><span class="w100 r_type">Double</span><span class="w400 r-intro">需要支付的金额</span></p>
			<p><span class="w100 r_name">ship_no</span><span class="w100 r_type">int</span><span class="w400 r-intro">运送编号</span></p>
			<p><span class="w100 r_name">items_json</span><span class="w100 r_type">String</span><span class="w400 r-intro">项目json</span></p>
			<p><span class="w100 r_name">logi_id</span><span class="w100 r_type">int</span><span class="w400 r-intro">标志id</span></p>
			<p><span class="w100 r_name">logi_name</span><span class="w100 r_type">String</span><span class="w400 r-intro">标志名称</span></p>
			<p><span class="w100 r_name">gift_id</span><span class="w100 r_type">int</span><span class="w400 r-intro">礼品id</span></p>
			<p><span class="w100 r_name">bonus_id</span><span class="w100 r_type">String</span><span class="w400 r-intro">奖金id</span></p>
			<p><span class="w100 r_name">itemList</span><span class="w100 r_type">String</span><span class="w400 r-intro">项目清单</span></p>
			<p><span class="w100 r_name">uname</span><span class="w100 r_type">String</span><span class="w400 r-intro">用户姓名</span></p>
			<p><span class="w100 r_name">orderType</span><span class="w100 r_type">String</span><span class="w400 r-intro">订单类型</span></p>
			<p><span class="w100 r_name">isOnlinePay</span><span class="w100 r_type">boolen</span><span class="w400 r-intro">是否在线支付</span></p>
			<p><span class="w100 r_name">needPayMoney</span><span class="w100 r_type">Double</span><span class="w400 r-intro">需要支付的金额</span></p>
		</div>
		<h3>调用结果:</h3>
			<h5>
				{
    "result": 1,
    "message": null,
    "data": {
        "order": {
            "fields": {
                
            },
            "order_id": 5,
            "sn": "146190432136",
            "member_id": 3,
            "status": 9,
            "pay_status": 0,
            "ship_status": 2,
            "shipStatus": "未发货",
            "payStatus": "未付款",
            "orderStatus": "订单已生效",
            "regionid": 457,
            "shipping_id": 1,
            "shipping_type": "圆通速递",
            "shipping_area": "北京-平谷区-平谷区",
            "goods": null,
            "create_time": 1461904321,
            "ship_name": "111111111111",
            "ship_addr": "123",
            "ship_zip": "100076",
            "ship_email": null,
            "ship_mobile": "13811111111",
            "ship_tel": "13811111111",
            "ship_day": "任意时间",
            "ship_time": null,
            "is_protect": 0,
            "protect_price": 0.0,
            "goods_amount": 189.0,
            "shipping_amount": 10.0,
            "discount": 0.0,
            "order_amount": 199.0,
            "weight": 0.0,
            "paymoney": 0.0,
            "remark": "",
            "disabled": 0,
            "payment_id": 1,
            "payment_name": "支付宝",
            "payment_type": "alipayDirectPlugin",
            "goods_num": null,
            "gainedpoint": 0,
            "consumepoint": 0,
            "depotid": 1,
            "cancel_reason": null,
            "sale_cmpl": 0,
            "sale_cmpl_time": null,
            "ship_provinceid": 1,
            "ship_cityid": 39,
            "ship_regionid": 457,
            "signing_time": null,
            "the_sign": null,
            "allocation_time": null,
            "admin_remark": null,
            "address_id": 1,
            "orderprice": {
                "goodsPrice": 189.0,
                "orderPrice": 199.0,
                "shippingPrice": 10.0,
                "needPayMoney": 199.0,
                "discountPrice": 0.0,
                "weight": 0.0,
                "point": 0,
                "discountItem": {
                    
                },
                "actDiscount": 0.0,
                "gift_id": 0,
                "bonus_id": 0
            },
            "memberAddress": {
                "addr_id": 1,
                "member_id": null,
                "name": "111111111111",
                "country": null,
                "province_id": 1,
                "city_id": 39,
                "region_id": 457,
                "province": "北京",
                "city": "平谷区",
                "region": "平谷区",
                "addr": "123",
                "zip": "100076",
                "tel": "13811111111",
                "mobile": "13811111111",
                "def_addr": 0,
                "remark": null,
                "isDel": null
            },
            "orderItemList": null,
            "need_pay_money": 199.0,
            "ship_no": null,
            "items_json": null,
            "logi_id": null,
            "logi_name": null,
            "gift_id": 0,
            "bonus_id": 0,
            "itemList": null,
            "uname": null,
            "orderType": "s",
            "isOnlinePay": true,
            "needPayMoney": 199.0,
            "isCod": false
			        }
			    }
			}
			</h5>
	</div>
</div>